<?php
//  各模块菜单栏以及权限配置
// +----------------------------------------------------------------------
// | Author: liu
// +----------------------------------------------------------------------
// 添加配置时,请勿遗漏参数名,参数值可为空
$menu = array(
    "admin" => array(
        array(
            'name' => '管理员管理',
            'controller' => 'admin/User',
            'icon' => 'fa-user',
            'child' => array(
                array(
                    'name' => '管理员列表',
                    'action' => 'admin/User/userList',
                    "auth" => array(
                        array("name" => '添加', 'action' => "admin/User/addUser"),
                        array("name" => '删除', 'action' => "admin/User/delUser"),
                        array("name" => '修改', 'action' => "admin/User/updateUser"),
                    )
                ),
                array(
                    'name' => '角色管理',
                    'action' => 'admin/Role/roleList',
                    "auth" => array(
                        array("name" => '添加', 'action' => "admin/Role/addRoleAuth"),
                        array("name" => '删除', 'action' => "admin/Role/delRole"),
                        array("name" => '修改', 'action' => "admin/Role/updateRoleAuth"),
                    )
                ),
            )
        ),

        array(
            'name' => '游戏中心',
            'controller' => 'admin/content',
            'icon' => 'fa-edit',
            'child' => array(
                array(
                    'name' => '战斗明细',
                    'action' => 'admin/Fight/fightList',
//                    "auth" => array(
//                        array("name" => '删除', 'action' => "admin/Banner/del"),
//                        array("name" => '添加', 'action' => "admin/Banner/add"),
//                        array("name" => '修改', 'action' => "admin/Banner/update"),
//                    )
                ),
                array(
                    'name' => '开蛋明细',
                    'action' => 'admin/OpenEgg/egglist',
//                    "auth" => array(
//                        array("name" => '删除', 'action' => "admin/Article/del"),
//                        array("name" => '添加', 'action' => "admin/Article/add"),
//                        array("name" => '修改', 'action' => "admin/Article/update"),
//                    )
                ),
                array(
                    'name' => '恐龙明细',
                    'action' => 'admin/Dinosaur/getList',
//                    "auth" => array(
//                        array("name" => '删除', 'action' => "admin/About/del"),
//                        array("name" => '添加', 'action' => "admin/About/add"),
//                        array("name" => '修改', 'action' => "admin/About/update"),
//                    )
                )
            )

        ),

        array(
            'name' => '交易中心',
            'controller' => 'admin/content',
            'icon' => 'fa-edit',
            'child' => array(
                array(
                    'name' => '交易明细',
                    'action' => 'admin/Transaction/getList',
//                    "auth" => array(
//                        array("name" => '删除', 'action' => "admin/Article/del"),
//                        array("name" => '添加', 'action' => "admin/Article/add"),
//                        array("name" => '修改', 'action' => "admin/Article/update"),
//                    )
                )
            )

        ),

        array(
            'name' => '用户中心',
            'controller' => 'admin/Member',
            'icon' => 'fa-user',
            'child' => array(
                array(
                    'name' => '地址管理',
                    'action' => 'admin/Member/getList',
//                    "auth" => array(
//                        array("name" => '添加', 'action' => "admin/Member/lock"),
//                        array("name" => '修改', 'action' => "admin/Member/update"),
//                        array("name" => '认证成功', 'action' => "admin/Member/updateAuth"),
//                        array("name" => '认证失败', 'action' => "admin/Member/updateAuth"),
//                    )
                ),
            )
        ),
        array(
            'name' => '系统配置',
            'controller' => 'admin/System',
            'icon' => 'fa-user',
            'child' => array(
//                array(
//                    'name' => '短信邮箱配置',
//                    'action' => 'admin/MsgConf/getList',
//                    "auth" => array(
//                        array("name" => '删除', 'action' => "admin/MsgConf/del"),
//                        array("name" => '修改', 'action' => "admin/MsgConf/update"),
//                    )
//                ),
                /*array(
                    'name' => '安卓包上传',
                    'action' => 'admin/ApkUpload/index',
                ),*/
                array(
                    'name' => '系统参数配置',
                    'action' => 'admin/SysConfig/getList',
                    "auth" => array(
                        array("name" => '删除', 'action' => "admin/SysConfig/del"),
                        array("name" => '修改', 'action' => "admin/SysConfig/update"),
                        array("name" => '添加', 'action' => "admin/SysConfig/add"),
                    )
                ),
            )
        )
    ),
);
